/**
 * 潜客生日关怀
 *
 * @Author: 殷世杰
 * @Date: 2019/10/06
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询关爱计划列表
export const getCareObjList = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/qryCustomerCare`, { params });
// 查询关爱计划明细
export const getCareTaskListById = careTargetId => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/findCareInfoByCareTargetId/${careTargetId}`);
// 保存关爱
export const insertCustomerCare = param => axios.post(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/insertCustomerCare`, param);
// 全部关爱
export const birthdayAllCare = param => axios.post(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/birthdayAllCare`, param);
// 关爱历史
export const qureyCareRecordPage = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/careTask/careTasks/qureyCareRecordPage`, {params});
// 潜客生日关怀获取条数
export const getBirthdayAllCareNum = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/getBirthdayAllCareNum`, {params});
// 特殊假日关怀条数
export const specialHolidayAllCareNum = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/specialHolidayAllCareNum`, {params});
// 全部关爱检查是否有非短信
export const judgeAllCareSMS = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customerCare/judgeAllCareSMS`, {params});
